yum install -y unzip gcc gcc-c++ gcc-gfortran readline-devel libXt-devel
yum install -y tcl tcl-devel tclx tk tk-devel mesa-libGLU mesa-libGLU-devel 
yum install -y bzip2-devel xz-devel.x86_64 pcre pcre-devel libcurl libcurl-devel
yum install -y libtiff libtiff-devel libjpeg-turbo libjpeg-turbo-devel
yum install -y libxml2-devel mysql-devel libpng libpng-devel
yum install -y texlive.x86_64 texinfo.x86_64 xz-devel  zlib-devel
yum install -y cairo cairo-devel cairomm-devel  pango pango-devel
yum install -y pangomm pangomm-devel giflib-devel

# yum groupinstall 'Development Tools' -y
# wget https://tukaani.org/xz/xz-5.2.4.tar.gz
# tar xzvf xz-5.2.4.tar.gz
# cd xz-5.2.4
# ./configure --prefix=/usr/share/xz
# make -j8
# make install
wget http://mirrors.ctan.org/fonts/inconsolata.zip
unzip inconsolata.zip
#mkdir -p /usr/share/texmf
cp -Rfp inconsolata/* /usr/share/texmf/
wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-3/R-3.4.4.tar.gz
tar -xzf R-3.4.4.tar.gz
cd R-3.4.4
ls
./configure --enable-R-shlib=yes --with-x --with-cairo --with-libpng --with-libtiff --with-jpeglib --with-tcltk
make && make install
